]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
switcherPopup: Hide the top level actor on _init
authorRui Matos <tiagomatos@gmail.com>
Thu, 17 Jan 2013 18:42:41 +0000 (19:42 +0100)
committerRui Matos <tiagomatos@gmail.com>
Fri, 18 Jan 2013 23:27:36 +0000 (00:27 +0100)
destroy() checks if we are visible to decide whether to destroy the
actor immediately or after a fade out animation. Since actors are
visible by default it would always end up destroying only after the
animation time.

https://bugzilla.gnome.org/show_bug.cgi?id=691963

js/ui/switcherPopup.js

index c3a4ce0d92ae20cc22691a9ad96522e542f64340..bfe172b0c863f34e925e01ba29f14f47f3cc356f 100644 (file)
@@ -46,7 +46,8 @@ const SwitcherPopup = new Lang.Class({
         this._selectedIndex = 0;
 
         this.actor = new Shell.GenericContainer({ style_class: 'switcher-popup',
-                                                  reactive: true });
+                                                  reactive: true,
+                                                  visible: false });
         this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
         this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
         this.actor.connect('allocate', Lang.bind(this, this._allocate));